import request from '@/utils/request'

// 查询咨询富文本列表
export function listConsult_text(query) {
  return request({
    url: '/api/consult_text/list',
    method: 'get',
    params: query
  })
}

// 查询咨询富文本详细
export function getConsult_text(id) {
  return request({
    url: '/api/consult_text/' + id,
    method: 'get'
  })
}

// 新增咨询富文本
export function addConsult_text(data) {
  return request({
    url: '/api/consult_text',
    method: 'post',
    data: data
  })
}

// 修改咨询富文本
export function updateConsult_text(data) {
  return request({
    url: '/api/consult_text',
    method: 'put',
    data: data
  })
}

// 删除咨询富文本
export function delConsult_text(id) {
  return request({
    url: '/api/consult_text/' + id,
    method: 'delete'
  })
}
